<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
<title>任务执行记录管理</title>
<meta name="decorator" content="default" />
<script type="text/javascript">
	function page(n, s) {
		$("#pageNo").val(n);
		$("#pageSize").val(s);
		$("#searchForm").submit();
		return false;
	}

	function checkImportPath() {
		return true;
	}
</script>
</head>
<body>
	<form:form id="searchForm" modelAttribute="record"
		action="${ctx}/cms/record/" method="post"
		class="breadcrumb form-search">
		<input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}" />
		<a href="${ctx}/cms/task/"><input id="btnBack"
			class="btn btn-primary" type="button" value="返回任务列表"></a>

	</form:form>


	<sys:message content="${message}" />
	<table id="contentTable"
		class="table table-striped table-bordered table-condensed">
		<thead>
			<tr>
				<th>关键字段</th>
				<th>类型</th>
				<th>用户id</th>
				<th>时间</th>
				<th>备注</th>
				<th>操作</th>
			</tr>
		</thead>
		<tbody>
			<c:forEach items="${page.list}" var="record">
				<tr>
					<td>${record.keyfield}</td>
					<td>${record.type}</td>
					<td>${record.userid}</td>
					<td>${record.dateStr}</td>
					<td>${record.description}</td>
					<td><c:if test="${record.type=='P'}">
							<a href="${ctx}/cms/record/form?id=${record.id}">查看</a>
						</c:if></td>
				</tr>
			</c:forEach>
		</tbody>
	</table>
	<div class="pagination">${page}</div>
</body>
</html>